﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StrategicObjective.aspx.cs"
    MasterPageFile="~/Site.Master" Inherits="RCREEE.Web.StrategicObjective" %>

<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="head">
    <div id="header">
        <div id="section">
            <table width="100%">
                <tr>
                    <td width="25%" align="center" valign="middle">
                        <img src="Images/LogoRCREEE_Transparent.png" width="200px"/>
                    </td>
                    <td width="50%" align="center">
                        <asp:Label ID="lbl_header_center" runat="server" Text="دليل إمكانيات الدول العربية<br/>في<br />مجالات الطاقة المتجددة و رفع كفاءة إنتاج و إستهلاك الطاقة"
                            Font-Bold="True" Font-Size="X-Large" Style="font-weight: bolder; color: #FFFFFF;
                            font-size: x-large; width: 100%; text-align: center;" meta:resourcekey="lbl_header_centerResource1">
                        </asp:Label>
                    </td>
                    <td width="25%" align="center" valign="middle">
                        <img src="Images/las-logo.png" width="100px" />
                    </td>
                </tr>
            </table>
        </div>
        <ul>
            <li><a href="Default.aspx">Home</a></li>
            <li><a href="Index.aspx">Index</a></li>
            <li><a href="Topics.aspx">Topics</a></li>
            <li><a href="CountrySelector.aspx">Countries</a></li>
            <li><a href="Aboutus.aspx">About Us</a></li>
            <li><a href="contactus.aspx">Contact us</a></li>
        </ul>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="scriptMan" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="Server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <div class="progressBackgroundFilter">
            </div>
            <div class="processMessage">
                Loading...<br />
                <br />
                <img alt="Loading..." src="Images/Loading.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div>
                <asp:Label ID="lblCountry" runat="server" Text="Country: " meta:resourcekey="lblCountryResource1" />
                <asp:DropDownList ID="ddlCountries" runat="server" AutoPostBack="True" Width="150px"
                    DataSourceID="odsCountries" DataTextField="CountryName" DataValueField="CountryId"
                    OnSelectedIndexChanged="ddlCountries_SelectedIndexChanged">
                </asp:DropDownList>
                <table>
                    <tr>
                        <td rowspan='3'>
                            <asp:ListBox ID="lstStrategicObjectives" runat="server" DataSourceID="odsStrategicObjectiveItems"
                                DataTextField="Name" DataValueField="ID" AutoPostBack="True" Height="200px" OnSelectedIndexChanged="lstStrategicObjectives_SelectedIndexChanged">
                            </asp:ListBox>
                        </td>
                        <td>
                            <asp:Label ID="lblUnit" runat="server" Text="Unit"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlUnits" runat="server" Height="20px" Width="150px" DataSourceID="odsUnits"
                                DataTextField="Name" DataValueField="ID">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblType" runat="server" Text="Type" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rdbIsRE" runat="server" GroupName="StrategicObjectiveType" Text="Renewable Energy" />
                            <br />
                            <asp:RadioButton ID="rdbIsEE" runat="server" GroupName="StrategicObjectiveType" Text="Energy Efficiency" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan='2'>
                            &nbsp;
                            <asp:DetailsView ID="dvDetails" runat="server" AutoGenerateEditButton="True" CellPadding="4"
                                EnableModelValidation="True" ForeColor="#333333" GridLines="None" Height="50px"
                                meta:resourcekey="dvDetailsResource1" OnItemUpdated="dvDetails_ItemUpdated" OnItemUpdating="dvDetails_ItemUpdating"
                                OnModeChanging="dvDetails_ModeChanging" Width="125px">
                                <AlternatingRowStyle BackColor="White" />
                                <CommandRowStyle BackColor="#FFFFC0" Font-Bold="True" />
                                <FieldHeaderStyle BackColor="#FFFF99" Font-Bold="True" />
                                <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EAEAEA" ForeColor="#333333" />
                            </asp:DetailsView>
                        </td>
                    </tr>
                </table>
            </div>
            <asp:ObjectDataSource ID="odsCountries" runat="server" SelectMethod="GetAllCountries"
                TypeName="RCREEE.Library.DataManager">
                <SelectParameters>
                    <asp:SessionParameter DefaultValue="1033" Name="LanguageCode" SessionField="LanguageCode"
                        Type="Int32" />
                    <asp:Parameter Name="FirstItem" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:ObjectDataSource ID="odsUnits" runat="server" SelectMethod="GetAllUnits" TypeName="RCREEE.Library.DataManager">
                <SelectParameters>
                    <asp:SessionParameter DefaultValue="1033" Name="LanguageCode" SessionField="LanguageCode"
                        Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:ObjectDataSource ID="odsStrategicObjectiveItems" runat="server" SelectMethod="GetAllStrategicObjectiveItems"
                TypeName="RCREEE.Library.DataManager">
                <SelectParameters>
                    <asp:SessionParameter DefaultValue="1033" Name="LanguageCode" SessionField="LanguageCode"
                        Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
